var request = require('request-promise');

LB.HELPER.HTTPGET = function(url, callback) {
 
    var options = {
      method: 'GET',
      url: url,
      headers: {
        "content-type": "application/json",
      },
      strictSSL: false,
      rejectUnauthorized: false,
      json: true
    }
    request(options).then((result)=>{
        return callback(result)
      }).catch((err)=>{
        LB.log.warn(`[Error]: ${err}`)
        return callback(false)
      }) 
}